// 导入封装的axios
import request from '@/utils/request.js'

// 根据频道ID获取新闻列表(params: {channel_id:频道ID, timestamp:时间戳})
export function getArticleListApi (params) {
  return request({ url: 'articles', params })
}

// 根据文章ID添加不感兴趣(target 点击时的文章ID)
export function disLikeById (target) {
  return request.post('article/dislikes', { target })
}
